package com.house.api.controller;

import com.house.common.result.Result;
import com.house.model.vo.EquipmentVo;
import com.house.service.mapper.EquipmentMapper;
import com.house.service.service.IEquipmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/equipment")
@Api(tags = "设备相关接口",value = "设备相关接口")
public class EquipmentController {
    @Autowired
    private IEquipmentService iEquipmentService;

    @GetMapping("/equipmentList")
    @ApiOperation("查询所有设备信息")
    public Result list(){
        List<EquipmentVo> list = iEquipmentService.equipmentVoList();
        return Result.ok(list);
    }
}
